<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<ui:composition template="/template.xhtml">

<!-- Aqui defino o  ui:insert -->
	<ui:define name="conteudo">
		<div class='lab_func'>
			<h1 class="form-signin-heading">Cadastro de Funcionário</h1>
		</div>
		<div class='body_func'>
			<div class='form_func'>
				<h:messages id="mensagemSucesso"/>
				<h:form>
					<div>
						<table>
							<tr>
								<td><h:outputText value="Nome:" /></td>
								<td><h:inputText value="#{funcionarioMB.objeto.nome}" styleClass="input-block-level" /></td>
							</tr>
							<tr>
								<td><h:outputText value="Cpf:" /></td>
								<td><h:inputText value="#{funcionarioMB.objeto.cpf}" styleClass="input-block-level" /></td>
							</tr>
							<tr>
								<td><h:outputText value="Idade:" /></td>
								<td><h:inputText value="#{funcionarioMB.objeto.idade}" styleClass="input-block-level" /></td>
							</tr>
							<tr>
								<td><h:outputText value="Salario:" /></td>
								<td><h:inputText value="#{funcionarioMB.objeto.salario}" styleClass="input-block-level" /></td>
							</tr>
						</table>
					</div>
					<div>
						<h:commandButton id="btgravar" action="#{funcionarioMB.gravar}" value="Gravar" styleClass="btn btn-large btn-primary" />
					</div>
				</h:form>
			</div>
		</div>
	</ui:define>
</ui:composition>
</html>